import Vue from "vue";
import App from "./App.vue";
import store from "./store";
import router from "./router/index";
import ElementUI from "element-ui";
import "@/css/reset.css";
import "element-ui/lib/theme-chalk/index.css";
import PageHead from "./components/PageHead.vue";
import "normalize.css/normalize.css";

Vue.config.productionTip = false;
Vue.prototype.$bus = new Vue();

// 导入所有要注册的全局组件
const globalComponents = [{ name: "PageHead", component: PageHead }];

// 批量注册全局组件
globalComponents.forEach(({ name, component }) => {
  Vue.component(name, component);
});
Vue.use(ElementUI, { size: 'small', zIndex: 3000 });

Vue.use(ElementUI);

new Vue({
  store,
  router,
  render: (h) => h(App),
}).$mount("#app");
